.custom-table{
  position: relative;
  width: 100%;
  .ant-table{
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    table{
      border-top-left-radius: 0 !important;
      border-top-right-radius: 0 !important;
    }
  }
  &.old-custom {
    .menu-icon{
      position: absolute;
      right: 0;
      top: -20px;
      height: 18px;
      line-height: 16px;
      padding: 0 10px;
      text-align: center;
      cursor: pointer;
      font-size: 10px;
      border: #e9e9e9 1px solid;
      border-radius: 3px;
    }
  }
  .table-container{
    .custom-table-header {
      height: 40px;
      line-height: 40px;
      position: relative;
      .table-header-title {
        font-size: 12px;
      }
      .table-button {
        position: absolute;
        right: 0;
        top: 0;
        height: 40px;
        button {
          margin-left: 10px;
          border-color: transparent;
          transition: all .3s cubic-bezier(.645,.045,.355,1);
          &:hover {
            color: white;
            background: $default-color;
          }
        }
      }
    }
    .ant-table td {
      white-space: nowrap;
    }
  }
  .filter-box{
    clear: both;
    padding: 0 6px;
    height: 40px;
    background-color: $background-title;
    border: 1px dashed $divide-line;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    line-height: 40px;
    font-size: 12px;
    i{
      cursor: pointer;
    }
    button{
      border: none;
      background-color: transparent;
      &:hover{
        color: $default-color;
      }
    }

    #tag-list{
      display: inline-block;
      vertical-align: middle;
      width: calc(100% - 120px);
      margin-left: 6px;
      margin-top: -4px;
      line-height: initial;
      white-space: nowrap;
      overflow: hidden;
      #tag-container{
        display: inline-block;
        width: 100%;
        -webkit-transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
        -moz-transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
        -ms-transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
        -o-transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
        transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
      }
    }
    .filter-tag{
      height: 24px;
      line-height: 24px;
      background-color: #fff;
      color: $default-color;
    }
    .filter-tag.checked{
      background-color: $default-color;
      border-color: $default-color;
      color: $font-ghost;
      i{color: $font-ghost;}
    }
  }
}

.custom-table-modal{
  .ant-table-placeholder{
    display: none;
  }
  .reset{
    height: 20px;
    line-height: 20px;
    width: 100%;
    display: block;
    text-align: right;
  }
  .custom-table-row-area {
    max-height: calc(100vh - 450px);
    overflow: scroll;
  }
  .custom-table-title{
    width: 100%;
    background: $table-title-bg;
    border-radius: 3px;
    font-size: 14px;
    color: $font-title;
    height: 24px;
    line-height: 24px;
    padding-left: 10px;
    margin-bottom: 10px;
  }
  .tips{
    position: relative;
    padding-left: 35px;
    line-height: 21px;
    div{
      position: absolute;
      left: 0;
      top: 0;
      height: 21px;
      line-height: 21px;
    }
  }
  .sort-container{
    position: relative;
    .drag-sort-list {
      -webkit-transform: scale(1) !important;
      -moz-transform: scale(1) !important;
      -ms-transform: scale(1) !important;
      -o-transform: scale(1) !important;
      transform: scale(1) !important;
    }
    .custom-column-item:last-child{
      border-bottom: 1px solid $divide-line;
    }
    .custom-column-item{
      background: white;
      position: relative;
      padding: 0 120px 0 30px;
      height: 50px;
      line-height: 50px;
      border: 1px solid $divide-line;
      border-bottom: none;
      width: 100%;
      .selected-icon{
        position: absolute;
        left: 0;
        top: 0;
        height: 50px;
        line-height: 50px;
        width: 30px;
        text-align: center;
      }
      .column-width{
        padding: 10px;
        .column-name{
          height: 20px;
          line-height: 20px;
        }
        .ant-slider{
          margin: 0;
          cursor: default;
        }
      }
      .column-operation{
        position: absolute;
        right: 0;
        top: 0;
        height: 50px;
        line-height: 50px;
        padding: 0 10px;
        width: 120px;
        text-align: center;
        i{
          font-size: 20px;
          cursor: pointer;
          color: $default-color-focus;
        }
      }
    }
  }
}
